export const enum Code {
  OK = 0,
  ALREADY_EXIST = 101, // 已存在
  NOT_EXiST = 102, // 不存在
  FORMAT_ERROR = 103, // 格式错误
  UNAUTHORIZED = 104, // 授权失败
  UNKNOW_ERROR = 199, // 未知错误
}

export enum Role {
  ADMIN = 'admin',
  ENTERPRISE = 'user',
  STAFF = 'visitor',
}

export const jwtConstants = {
  secret: 'mvb-common-platform-*8372',
};

export const enum AuthItem {
  READ = 'read',
  CREATE = 'create',
  MODIFY = 'modify',
  DELETE = 'delete',
  EXPORT = 'export',
  IMPORT = 'import',
}
export enum OperType {
  CREATE = 'create',
  DELETE = 'delete',
  MODIFY = 'modify',
  QUERY = 'query',
  LOGIN = 'login',
  LOGOUT = 'logout',
  IMPORT = 'import',
  EXPORT = 'export',
}
